package com.hyt.it.ogt.kq.service.gov.model.vo.admission;

import com.hyt.it.ogt.kq.service.model.entity.admission.ExamineeInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 考生准考证Vo
 * </p>
 *
 * @author huw
 * @since 2023-02-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "考生准考证Vo", description = "考生准考证Vo")
public class ExamineeInfoVO extends ExamineeInfo {

    /**
	 * 
	 */
	private static final long serialVersionUID = 2415494082243083756L;

	@ApiModelProperty(value = "查看状态")
    private String viewStatusDesc;
    
    @ApiModelProperty(value = "下载状态")
    private String downLoadStatusDesc;

	public String getViewStatusDesc() {
		Integer ticketViewTimesTemp = getTicketViewTimes();
		if(null != ticketViewTimesTemp && ticketViewTimesTemp.compareTo(0) > 0) {
			return "已查看";
		}else {
			return "未查看";
		}
		
	}

	
	public String getDownLoadStatusDesc() {
		Integer ticketDownloadTimesTemp = getTicketDownloadTimes();
		if(null != ticketDownloadTimesTemp && ticketDownloadTimesTemp.compareTo(0) > 0) {
			return "已下载";
		}else {
			return "未下载";
		}
	}
}
